﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ms_page.master" AutoEventWireup="true" CodeFile="CommentDoc.aspx.cs" Inherits="CommentDoc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
       <!-- BEGIN ===== ADD/EDIT Item - SEARCH PANEL -->
<div id="profile_frame" style="width:100%"><!-- thong tin lien he -->
<asp:Panel runat="server" ID="SearchPanel">
    <div>
        <span style="color:Red"><asp:Label ID="lbThongBao" runat="server"></asp:Label></span>
    </div>
    <fieldset>
       
        <legend>
            <span class="title">Tìm kiếm</span>
        </legend>
        <div style="text-align:left" id="ANdiv" class="title">
        </div>
    </fieldset>
    <br />
    <fieldset>
        <legend>
            <span>Danh sách</span>
        </legend>
        <div id="gvrd" align="center" style="margin-top:10px; width:100%" >
            <asp:GridView ID="grid" runat="server" AutoGenerateColumns="False" BackColor="White" 
                BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" 
                CellSpacing="1" EnableModelValidation="True" GridLines="None" 
                AllowPaging="True" Width="100%" 
                onpageindexchanging="grid_PageIndexChanging" PageSize="100" >
                <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                <HeaderStyle CssClass="thead"  Font-Bold="True" ForeColor="White"  Font-Size="12px" />
                  <Columns>
                    <asp:TemplateField HeaderText="Mã tài liệu" HeaderStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                            <%#Eval("DocumentId")%>
                        </ItemTemplate>
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle  HorizontalAlign="center" Width="80px" ForeColor="Black" />
                    </asp:TemplateField>
                      <asp:TemplateField HeaderText="Tên tài liệu" HeaderStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                             <%#Eval("DocumentName")%>
                        </ItemTemplate>
                          <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle  HorizontalAlign="left" Width="200px" CssClass="Grid_Row" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Ngày Phê Duyệt" HeaderStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                             <%# String.Format("{0: dd/MM/yyyy hh:mm:ss}", Eval("CreateDate"))%>
                        </ItemTemplate>
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle  HorizontalAlign="Center" Width="120px"  CssClass="Grid_Row" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Người phê duyệt" HeaderStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                             <%#Eval("Author")%>
                        </ItemTemplate>
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle  HorizontalAlign="Center" Width="120px"  CssClass="Grid_Row" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Ghi chú" HeaderStyle-HorizontalAlign="Center">
                         <ItemTemplate>
                            <%#Eval("Comment") %>
                        </ItemTemplate>
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle  HorizontalAlign="Left" Width="200px"  CssClass="Grid_Row" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Trạng thái" HeaderStyle-HorizontalAlign="Center">
                         <ItemTemplate>
                                <%# GetStatus(Eval("Status").ToString()) %>
                        </ItemTemplate>
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle  HorizontalAlign="Center" Width="60px"  CssClass="Grid_Row" />
                    </asp:TemplateField>
                </Columns>
                <PagerStyle CssClass="Gridpager" HorizontalAlign="Center" />
                <AlternatingRowStyle CssClass="Grid_alternative"  />
                <SelectedRowStyle CssClass="Grid_Row"/>
            </asp:GridView>
        </div>
    </fieldset>
</asp:Panel>
</div>
</asp:Content>

